# encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from ..MessageAnalysis import*

class JT_8800:
    result = []
    s=""
    def LogicAisle(self, protocolStr, header):
        count = 0
        s=protocolStr[count:count + 8]
        header.append("多媒体ID:" + s +"\n")
        s = protocolStr[count:-4]
        if len(s)==8:
            count=count + 8
        else:
            count = count + 8
            s = protocolStr[count:count + 2]
            n = int(s, 16)
            header.append("重传包总数:" + str(n) + "\n")
            header.append("重传包ID列表:")
            for i in range(n):
                s = protocolStr[count:count + 4]
                header.append(s + "\n")
                count = count + 4
        self.result = header
